package org.neptune.web.controller;

import org.neptune.api.request.RegisterRequest;
import org.neptune.common.response.ResponseBean;
import org.neptune.service.service.UserRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userRegister")
public class UserRegisterController {

	@Autowired
	private UserRegisterService userRegisterService;

	@RequestMapping("/register")
	public ResponseBean<Object> register(RegisterRequest registerRequest) throws Exception {

		return userRegisterService.register(registerRequest);
	}

}
